package com.shinowit.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class TreeNode implements Serializable {
	
	private static final long serialVersionUID = 1L;

	private String id;
	
	private String text;
	
	public List<TreeNode> children=new ArrayList<TreeNode>();

	public TreeNode(){}
	
	public TreeNode(String id,String text){
		this.id=id;
		this.text=text;
	}
	
	public void addChild(TreeNode node){
		this.children.add(node);
	}
	
	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public List<TreeNode> getChildren() {
		return children;
	}

	public void setChildren(List<TreeNode> children) {
		this.children = children;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	
}
